﻿@model EyeOpen.Mvc.Models.ContentLocalizedEditingViewModel
@{
	Layout = "~/Views/Shared/_Private.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@Html.ValidationSummary(true, "Fix the errors to save the content.")

<div>
	<fieldset>
		<legend>Content editing</legend>

		<table>
			<tr>						
				<td></td>
				
				<td>Title</td>
			</tr>

		@foreach (var sectionViewModel in Model.SectionViewModels) 
		{
			<tr>						
				<td>@Html.ActionLink("Edit", "Edit", "BackEnd", new { id = sectionViewModel.Id })</td>
				
				<td>@sectionViewModel.Title</td>
			</tr>
		}
		</table>
	</fieldset>
</div>